﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EasyProjectDB.Models
{
    [Table("Users")]
    public class UserModels
    {
        [Key]
        public int UserId { set; get; }

        [MaxLength(50)]
        public string UserFirstName { set; get; }

        [MaxLength(50)]
        public string UserLastName { set; get; }

        [MaxLength(50)]
        public string UserPassword { set; get; }

        [MaxLength(50)]
        public string UserUserName { set; get; }

        [MaxLength(4)]
        public int UserAge { set; get; }

        public DateTime UserDateOfBirth { set; get; }

        [MaxLength(50)]
        public string UserMaritualStatus { set; get; }

        [MaxLength(50)]
        public string UserCity { set; get; }

        [MaxLength(50)]
        public string UserAddress { set; get; }

        [Phone]
        [MaxLength(15)]
        public string UserPhone { set; get; }

        public int UserSickDays { set; get; }

        public int UserDaysOff { set; get; }

        [Timestamp]
        public DateTime UserCreateDate { set; get; }

        public Boolean UserIsDisable { set; get; }


        public int JobId { get; set; }

        // Navigation properties
        [ForeignKey("JobId")]
        public JobDetailsModels JobDetail { get; set; }

        //public virtual ICollection<RequestsModels> Requests { get; set; }

        //public virtual ICollection<LogInOutModels> LogInOut { get; set; }
    }
}
